package org.edu.modules.resource.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;

@TableName("ve_res_classify")
@ApiModel(value="ve_res_classify对象", description="资源应用分类")
public class VeResClassify
        implements Serializable
{
    private static final long serialVersionUID = 1L;
    @TableId(type=IdType.AUTO)
    @ApiModelProperty("id")
    private Integer id;
    @ApiModelProperty("分类名称")
    private String name;
    @ApiModelProperty("状态")
    private Integer status;
    @ApiModelProperty("图标名称")
    private String iconame;
    @ApiModelProperty("排序")
    private Integer listsort;
    @ApiModelProperty("多租户id")
    private Integer placeId;

    public VeResClassify setStatus(Integer status)
    {
        this.status = status;return this;
    }

    public VeResClassify setName(String name)
    {
        this.name = name;return this;
    }

    public VeResClassify setId(Integer id)
    {
        this.id = id;return this;
    }

    public String toString()
    {
        return "VeResClassify(id=" + getId() + ", name=" + getName() + ", status=" + getStatus() + ", iconame=" + getIconame() + ", listsort=" + getListsort() + ", placeId=" + getPlaceId() + ")";
    }

    public VeResClassify setPlaceId(Integer placeId)
    {
        this.placeId = placeId;return this;
    }

    public VeResClassify setListsort(Integer listsort)
    {
        this.listsort = listsort;return this;
    }

    public VeResClassify setIconame(String iconame)
    {
        this.iconame = iconame;return this;
    }

    public int hashCode()
    {
        int PRIME = 59;int result = 1;Object $id = getId();result = result * 59 + ($id == null ? 43 : $id.hashCode());Object $status = getStatus();result = result * 59 + ($status == null ? 43 : $status.hashCode());Object $listsort = getListsort();result = result * 59 + ($listsort == null ? 43 : $listsort.hashCode());Object $placeId = getPlaceId();result = result * 59 + ($placeId == null ? 43 : $placeId.hashCode());Object $name = getName();result = result * 59 + ($name == null ? 43 : $name.hashCode());Object $iconame = getIconame();result = result * 59 + ($iconame == null ? 43 : $iconame.hashCode());return result;
    }

    protected boolean canEqual(Object other)
    {
        return other instanceof VeResClassify;
    }

    public boolean equals(Object o)
    {
        if (o == this) {
            return true;
        }
        if (!(o instanceof VeResClassify)) {
            return false;
        }
        VeResClassify other = (VeResClassify)o;
        if (!other.canEqual(this)) {
            return false;
        }
        Object this$id = getId();Object other$id = other.getId();
        if (this$id == null ? other$id != null : !this$id.equals(other$id)) {
            return false;
        }
        Object this$status = getStatus();Object other$status = other.getStatus();
        if (this$status == null ? other$status != null : !this$status.equals(other$status)) {
            return false;
        }
        Object this$listsort = getListsort();Object other$listsort = other.getListsort();
        if (this$listsort == null ? other$listsort != null : !this$listsort.equals(other$listsort)) {
            return false;
        }
        Object this$placeId = getPlaceId();Object other$placeId = other.getPlaceId();
        if (this$placeId == null ? other$placeId != null : !this$placeId.equals(other$placeId)) {
            return false;
        }
        Object this$name = getName();Object other$name = other.getName();
        if (this$name == null ? other$name != null : !this$name.equals(other$name)) {
            return false;
        }
        Object this$iconame = getIconame();Object other$iconame = other.getIconame();return this$iconame == null ? other$iconame == null : this$iconame.equals(other$iconame);
    }

    public Integer getId()
    {
        return this.id;
    }

    public String getName()
    {
        return this.name;
    }

    public Integer getStatus()
    {
        return this.status;
    }

    public String getIconame()
    {
        return this.iconame;
    }

    public Integer getListsort()
    {
        return this.listsort;
    }

    public Integer getPlaceId()
    {
        return this.placeId;
    }
}
